package com.tangmin.spring;/**
 * @ClassName UserDaoDemo
 * @Description spring快速入门
 * @date 2021/9/17 17:35
 * @Version 1.0
 */

import com.tangmin.dao.UserDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * UserDao快速入门测试类
 *
 * @author YourName
 * @date 2021-09-17 17:35
 **/
public class UserDaoDemo {
    public static void main(String[] args) {
        ApplicationContext app=new ClassPathXmlApplicationContext("applicationContext.xml");
        UserDao userDao = (UserDao) app.getBean("userDao");
        userDao.show();
    }
}
